#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.basic.security.oauth2.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Description: 权限认证是否开启 的配置类
 *
 * @author ywh
 * @date 2019/8/6 15:28
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "yk.security")
public class YkSecurityProperties {

    /** 不需要验证的路径 */
    private String[] allowPath = new String[0];

    /** 是否打开uri鉴权 */
    private boolean enableUriAuth = false;

    /** 登陆身份信息有效期（s），0/负数代表不过期，注：优先级低于oauth_client_details中的配置 */
    private int tokenExpireTime = 3600;

    /** 单点登录URL */
    private String ossLoginPage = "/api/v1/auth/authorize.html";

    /** 登陆成功后跳转路径 */
    private String ssoFromLoginSuccessDefaultPage = "/api/v1/auth/login_success.html";

    /** login<b>请求</b>路径 */
    private String loginProcessUrl = "/yk/login";

    private String resourceId = "${parentArtifactId}";

    /** 登录时是否加密密码 */
    private boolean pwdEncrypt = true;

    /** 是否启用图形验证码 */
    private boolean imgCodeEnable = true;
}
